package com.service;

import com.alibaba.druid.sql.visitor.functions.Right;
import com.pojo.RightClassOne;

import java.util.List;

public interface RightService {

    /**
     * 查询所有权限
     * @return
     */

    Boolean updateStatusByRightId(Integer rightId);

    Boolean updateStatusFatherAndChild(Integer rightId);

    Boolean updateRight(RightClassOne rightClassOne);

    List<RightClassOne> findMainRight();

    Boolean addFrontRight(RightClassOne rightClassOne);

    Boolean addBackgroundRight(RightClassOne rightClassOne);

    List<RightClassOne> findByFuzzy(RightClassOne rightClassOne);
}
